package io.adrainty.bolee.framework.mq.basic;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * MQ消息封装
 * @author AdRainty
 * @version V1.0.0
 * @since 2025/7/28 上午12:31
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MQMessage {

    @Schema(description = "消息ID")
    private Long messageId;

    @Schema(description = "消息内容")
    private String content;

    @Schema(description = "消息类型")
    private String messageType;

    @Schema(description = "消息产生时间")
    private LocalDateTime createdTime;

    @Schema(description = "消息发送者")
    private String sender;

}
